import React from 'react';
import './menu.less';
import {
	Link
} from 'react-router-dom'

// import axios from 'axios'
class menu extends React.Component{
	constructor(props) {
	  super(props);
	  this.state = {
	   menuList:[{title:'商品管理',path:'/goods'},{title:'活动管理',path:'/activity'},{title:'类目管理',path:'/category'},{title:'虚拟分类',path:'/imageUpload'}]
	  };
	}
	
	render(){
		return (
			<div id='menu'>
			  {this.state.menuList.map((v, i) => {
              return (
                <div className='menu_item' key={i}><Link to={v.path}>{v.title}</Link></div>
                 )
            })}
			</div>
		)
	}
}
export default menu